<?php

//<editor-fold defaultstate="collapsed" desc="License & Copyright">
/*
 * @license
 */

/**
 *
 * @author Jevgeni Geimanen (jevgeni.geimanen@gmail.com)
 */
//</editor-fold>
class RequiredFormFieldValidator extends FormFieldValidator {

    /**
     *
     * @return string
     */
    public function getErrorMessage($error = null) {
        return parent::getErrorMessage(RequiredFormFieldValidator_Labels::ERROR_MESSAGE);
    }

    public function getValidatorType() {
        return self::VALIDATOR_TYPE_REQUIRED;
    }

}

?>
